import request from '@/utils/request'

// 查询平台产品列表
export function listProductOrganizations(query) {
  return request({
    url: '/product/productOrganizations/list',
    method: 'get',
    params: query
  })
}

// 查询平台产品详细
export function getProductOrganizations(organizationId) {
  return request({
    url: '/product/productOrganizations/' + organizationId,
    method: 'get'
  })
}

// 新增平台产品
export function addProductOrganizations(data) {
  return request({
    url: '/product/productOrganizations',
    method: 'post',
    data: data
  })
}

// 修改平台产品
export function updateProductOrganizations(data) {
  return request({
    url: '/product/productOrganizations',
    method: 'put',
    data: data
  })
}

// 删除平台产品
export function delProductOrganizations(organizationId) {
  return request({
    url: '/product/productOrganizations/' + organizationId,
    method: 'delete'
  })
}
